package com.frozenc.mapper;

import com.frozenc.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by FrozenC on 2016/9/8.
 */
@Mapper
public interface UserMapper {

    int save(User user) throws DataAccessException;

    int updateInfo(User user) throws DataAccessException;
//
//    User selectById(Integer id);
//
//    int updateById(User user);
//
//    int deleteById(Integer id);
//
    List<User> queryAll();

    User selectByUsername(String username);
}
